<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
    <%@  taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>보고서</title>
</head>
<body>


<c:choose>
<c:when test="${requestScope.reportX != null }">
 
 	<h2>연필심기계 보고서</h2>
 	
	<table border="1" width="900"  cellspacing="0">
			<tr><h3>열필심기계 정보 테이블</h3></tr>
				<tr>
					<th>No</th>		
					<th>흑심량</th>
					<th>점토량</th>
					<th>물량</th>
					<th>정상품수</th>
					<th>불량품수</th>
					<th>생성시간</th>
				</tr>
		
			<c:forEach  var='mto' items="${requestScope.reportX.list1}" varStatus='cnt'>
			 	<tr>
			 		<td align="center">${cnt.count }</td>
			 		<td align="center">${mto.blackRead }</td>
			 		<td align="center">${mto.clay }</td>
			 		<td align="center">${mto.water } </td>
			 		<td align="center">${mto.normal}</td>
			 		<td align="center">${mto.abnormal }</td>
			 		<td align="center">${mto.endTime }</td>
			 	</tr>
	 
			</c:forEach>
</tabel>


<table border="1" width="900"  cellspacing="0">
					<tr><h3>열필심 재료 창고 정보 테이블</h3></tr>
			
				<tr>		
					<th>No.</th>
					<th>흑연</th>
					<th>점토</th>
					<th>입출고현황</th>
					<th>날짜</th>
				</tr>
			<c:forEach  var='mto' items="${requestScope.reportX.list2}" varStatus='cnt'>
			 	<tr>
			 		<td align="center">${cnt.count }</td>
			 		<td align="center">${mto.blackLead }</td>
			 		<td align="center">${mto.clay }</td>
			 		<td align="center">${mto.invenInfo } </td>
			 		<td align="center">${mto.dateRegist }</td>
			 	</tr>
			</c:forEach>
</tabel>

<table border="1" width="900"  cellspacing="0">
					<tr><h3>연필심 재고 창고 현황</h3></tr>
				<tr>		
					<th>연필심</th>
					<th>창고현황</th>
			 		<th>날짜</th>
				</tr>
			 	<tr> 
			 		<td align="center">${requestScope.reportX.bsto.amount}</td>
			 		<td align="center">${requestScope.reportX.bsto.invenInfo}</td>
				 	<td align="center">${requestScope.reportX.bsto.dateRegist}</td>
			 	</tr>
			
</tabel>

	


</c:when>

<c:when test="">
</c:when>
<c:when test="">
</c:when>
<c:when test="">
</c:when>
<c:otherwise>

</c:otherwise>

</c:choose>

</body>
</html>